Branching Tree Grammars in TREEBAG

نویسندگان

  • Gabriel Jonsson
  • Frank Drewes
چکیده

In this master thesis project a class of tree grammars called “Branching tree grammar” has been implemented into the TREEBAG system. A tree grammar is a device that generates a language of mathematical trees, according to rules specified by the user. These trees can then be transformed into for example pictures, by other components in TREEBAG. The branching tree grammar, which is a class of grammars known from literature, can generate more advanced languages than the grammars previously implemented in TREEBAG. The implementation uses an approach of analyzing the branching tree grammar, and replacing it with a series of simpler components, namely regular tree grammars and top-down tree transducers. These components, when used together in a sequence transforming each others’ output, will generate exactly the same language as the specified branching tree grammar. Regular tree grammars and top-down tree transducers were already implemented in TREEBAG. Therefore the core implementation of branching tree grammar consists of an algorithm that reads a file that specifies a branching tree grammar, translates it into the equivalent series of simpler components, and outputs files describing regular tree grammars and top-down tree transducers. These files are then processed by the existing TREEBAG-components. As a basis for the translation an algorithm has been used, which was taken from a constructive proof, in which it was proved that for each branching tree grammar, there exists a sequence of a regular tree grammar and top-down tree transducers, which generates the same language. However, in order to get an implementation that obeys feasible time requirements, and which is also fairly easy to use, the given algorithm to obtain the regular tree grammar and transducers had to be heavily reconstructed. This report describes at a relatively formal level the given translation algorithm as well as several improved versions of the algorithm. The advantages of the different algorithms are discussed, and some proofs and proof sketches for the correctness of the improved algorithms are also included.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

The TREEBAG Manual

This document describes the use of Treebag, a system implemented in Java that allows to generate and transform objects using tree grammars and tree transducers. The basic ideas underlying Treebag are briefly summarised in Section 1. In Section 2 the Treebag worksheet—the main window of the system—is described. Section 3 explains the syntax of files needed to define worksheet configurations and ...

متن کامل

Treebag|A Tree-Based Generator for Objects of Various Types

A software system called Treebag|Tree-Based G enerator|is presented. The aim behind Treebag is to allow for the generation and visualization of objects of all kinds: pictures, trees, graphs, strings, numbers, etc. The basic principle is that tree generators like, for instance, regular tree grammars, generate terms over symbols that are interpreted by appropriate algebras as operations on the do...

متن کامل

Macro Tree Transducers in Treebag

Treebag is a software for experimenting with formal models in Computer Science, one type of such models being tree transducers. Tree transducers translate input trees to output trees, a mechanism used in e.g. compilers and picture generation. The top-down tree transducer is one of the formal models implemented as a component in Treebag. Compared to the top-down tree transducer, the macro tree t...

متن کامل

Alternating Regular Tree Grammars in the Framework of Lattice-Valued Logic

In this paper, two different ways of introducing alternation for lattice-valued (referred to as {L}valued)  regular tree grammars and {L}valued top-down tree automata are compared. One is the way which defines the alternating regular tree grammar, i.e., alternation is governed by the non-terminals of the grammar and the other is the way which combines state with alternation. The first way is ta...

متن کامل

Two infinite hierarchies of languages defined by branching grammars

Two types of branching grammars are introduced inspired from Havel's works about branching automata. They naturally define two infinite hierarchies into the family of regular, respectively, linear languages. Homomorphic characterisations of regular and linear languages >n terms of branching languages are obtained. Finally, the relations between branching grammars and contextual grammars of [5] ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2006